<template>
	<view class="flex flex-y-center">
		<u-icon name="play-right" size="32"></u-icon>
		<u-badge numberType="limit" type="info" max="999" :value="countPlays || initData.playsVolume"
			:inverted="true"></u-badge>
	</view>
</template>

<script>
	import Constants from '@/constants';
	//播放量组件，依赖uview组件库u-badge组件
	//@group 业务组件
	export default {
		//
		name: 'plays',
		//
		mixins: [Constants],
		//
		props: {
			//播放数量
			countPlays: {
				type: [String, Number],
				default: 0,
				required: true
			}
		},
		//
		data() {
			return {};
		}
	};
</script>

<style lang="scss" scoped></style>